package com.rndemo.rn.api;

import com.facebook.react.bridge.BaseJavaModule;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactMethod;

/**
 * js 调用java
 * Created by tzj on 2018/3/27.
 */
public class PlatformApi extends BaseJavaModule {

    @Override
    public String getName() {
        return "PlatformApi";
    }

    @ReactMethod
    public void callFun(int a,int b, Callback call){
        call.invoke(a+b);
    }

}
